package com.coolnie.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.AbstractCollection;

/**
 * Created by Administrator on 2017/3/24 0024.
 */
@Controller
public class WelcomeController extends AbstractController {

    @RequestMapping("/welocome")





    public ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        return new ModelAndView("welcome");
    }
//    界面返回
//    @RequestMapping("/hello")
//    public String welcome(@RequestParam("nickname")String nickname){
//        return "weclome";
//    }

    }


